package Thread;

public class ThreadDemo17 {
    public static void main(String[] args) throws InterruptedException {

        Object o = new Object();

        synchronized (o) {
            System.out.println("wait之前");
            o.wait();
            System.out.println("wait之后");
        }

    }
}
